<%--
  Created by IntelliJ IDEA.
  User: 28912
  Date: 2022/11/6
  Time: 10:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" type="text/css" href="../../../web_01-1.0-SNAPSHOT/static/css/web_01.css"/>
    <meta charset="UTF-8">
    <title>add</title>
</head>
<body>
<div class="login_011">
    <div class="login_02">
        <span>请输入要添加的个人信息</span>
    </div>
    <div class="login_03">
        <div class="login_04">
            <div>
                姓名：<input type="text" id="t1" class="itxt1">
            </div>
            <div>
                学号：<input type="text" id="t2" class="itxt1">
            </div>
            <div>
                密码：<input type="text" id="t3" class="itxt1">
            </div>
            <div>
                性别：<input type="text" id="t4" class="itxt1">
            </div>
            <div>
                班级：<input type="text" id="t5" class="itxt1">
            </div>
            <button class="but01" id="btn05">确认添加</button>
            &nbsp
            &nbsp
            <button class="but01" id="btn06">返回主界面</button>
            <script>
                let btn05 = document.getElementById("btn05");
                btn05.onclick = function(){
                    let id = document.getElementById("t2").value;
                    let name = document.getElementById("t1").value;
                    let sex = document.getElementById("t4").value;
                    let cla = document.getElementById("t5").value;
                    let pwd = document.getElementById("t3").value;
                    window.location.href = "/web/add?id="+id+"&name="+name+"&sex="+sex+"&cla="+cla+"&pwd="+pwd;
                    return false;
                }
                let btn06 = document.getElementById("btn06");
                btn06.onclick = function() {
                    window.location.href = "/web/relogin";
                    return false;
                }
            </script>
            <div>${error}</div>
        </div>
    </div>
</div>
</body>
</html>